import 'package:flutter_nb_net/flutter_net.dart';

class CardInfoResp extends BaseNetModel {
  int? code;
  String? msg;
  CardInfoData? data;

  CardInfoResp({this.code, this.msg, this.data});

  @override
  fromJson(Map<String, dynamic> json) {
    return CardInfoResp(
      code: json['code'],
      msg: json['msg'],
      data: json['data'] == null ? null : CardInfoData().fromJson(json['data']),
    );
  }
}

class CardInfoData extends BaseNetModel {
  String? iccid;
  String? imei;
  String? simId;

  int? cardStatus;
  int? monthFlow;
  double? monthUsedFlow;
  int? openStatus;
  String? activeTime;
  String? overdueTime;
  int? flowServStatus;
  int? flowNumber;
  String? flowExpTime;

  CardInfoData({this.iccid, this.imei, this.simId, this.cardStatus, this.monthFlow, this.monthUsedFlow, this.openStatus, this.activeTime, this.overdueTime, this.flowServStatus, this.flowNumber, this.flowExpTime});

  @override
  fromJson(Map<String, dynamic> json) {
    return CardInfoData(
      iccid: json['iccid'],
      imei: json['imei'],
      simId: json['simId'],
      cardStatus: json['cardStatus'],
      monthFlow: json['monthFlow'],
      monthUsedFlow: json['monthUsedFlow'],
      openStatus: json['openStatus'],
      activeTime: json['activeTime'],
      overdueTime: json['overdueTime'],
      flowServStatus: json['flowServStatus'],
      flowNumber: json['flowNumber'],
      flowExpTime: json['flowExpTime'],
    );
  }

}